﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
        var ws;
        var lastData = null;
        function run() {
            ws = new WebSocket("ws://192.168.3.190:" + 5354);
            ws.onmessage = function (msg) {
                lastData = msg.data;
            };
            ws.onopen = function () {

                console.log('open');
            };

            ws.onclose = function () {
                console.log('close');
            }
        }

    </script>

</head>
<body>
<input type="button" value="test" onclick="run()">

<div id="div1"></div>
</body>
</html>